<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tk="http://www.qdocuments.net" elementFormDefault="qualified">
  <xs:import namespace="http://www.qdocuments.net" schemaLocation="DataItem.xsd"/>
  <xs:element name="Toolkit">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="tk:Table"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="RefValue">
    <xs:complexType>
      <xs:attribute name="Field" type="xs:string" use="required"/>
      <xs:attribute name="RefField" type="xs:string" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="Link">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded"/>
      <xs:attribute name="ID" type="xs:string"/>
      <xs:attribute name="Target" type="xs:string" default="_blank"/>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="HtmlCtrlType">
    <xs:attribute name="HtmlCtrl" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="Detail"/>
          <xs:enumeration value="Text"/>
          <xs:enumeration value="Hidden"/>
          <xs:enumeration value="CheckBox"/>
          <xs:enumeration value="Combo"/>
          <xs:enumeration value="TextArea"/>
          <xs:enumeration value="Password"/>
          <xs:enumeration value="File"/>
          <xs:enumeration value="EasySearch"/>
          <xs:enumeration value="Radio"/>
          <xs:enumeration value="DetailUpload"/>
          <xs:enumeration value="Upload"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Order" type="xs:unsignedInt" use="required"/>
  </xs:complexType>
  <xs:complexType name="InsertType">
    <xs:complexContent>
      <xs:restriction base="HtmlCtrlType">
        <xs:attribute name="DefaultValue" type="xs:string"/>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>
</xs:schema>
